#!/bin/bash
# 镜像可用性检查工具

echo "=== 镜像可用性检查 ==="
echo

mirrors=(
    "https://gitee.com/mirrors/expat"
    "https://gitee.com/mirrors/zlib"
    "https://gitee.com/mirrors/libpng"
    "https://gitee.com/mirrors/libtiff"
    "https://gitee.com/mirrors/libjpeg-turbo"
)

for mirror in "${mirrors[@]}"; do
    echo -n "检查 $mirror ... "
    if git ls-remote "$mirror" >/dev/null 2>&1; then
        echo "✅ 可用"
    else
        echo "❌ 不可用"
    fi
done

echo
echo "=== 检查完成 ==="
